const cheerio = require("cheerio")

let $ = cheerio.load("<div><p>你好</p><img src='limi.png'/><img src='http://www.baidu.com'/></div>");

// console.log($("img").attr("src"));
let imgL = []

$("img").each((index,item)=>{
	imgL.push($(item).attr("src"))
})
console.log(imgL)
console.log($("p").text());